<include file="public@header" />


<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>

<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" />
<style>
    .modal {
        width: 100%;
        position: fixed;
        margin: 0px auto;
        top: 0px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        z-index: 1111050;
    }

    .modal_wrapper {
        display: table;
        overflow: auto;
        overflow-y: scroll;
        height: 100%;
        -webkit-overflow-scrolling: touch;
        outline: 0;
        margin: 0px auto;
    }
</style>
<script>

    function openModak() {
        $("[name='testname']").val("xxxxxxxxxxxxxxx");//向模态框中赋值
        layui.use(['layer'], function () {
            var layer = layui.layer, $ = layui.$;
            layer.open({
                type: 1,//类型
                area: ['400px', '300px'],//定义宽和高
                title: '查看详细信息',//题目
                shadeClose: false,//点击遮罩层关闭
                content: $('#motaikunag')//打开的内容
            });
        })
    }
</script>

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>钱包列表</h5>
                        <div class="ibox-tools">
                            <a href="#" class="btn btn-primary btn-xs active">钱包列表</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form class="well form-inline margin-top-20" method="post" action="{:url('Wallet/index')}">
                            用户：
                            <input class="form-control" type="text" name="uid" style="width: 200px;"
                                value="{:input('request.uid')}" placeholder="请输入用户ID,如:800001">
                            币种：
                            <select class="form-control" name="coin_symbol">
                                <option value="">--------- </option>
                                <foreach name="bizhong" item="vo">
                                    <option value="{$vo}" <eq name="vo" value=":input('request.coin_symbol')">selected
                                        </eq> >{$vo}</option>
                                </foreach>

                            </select>
                            <input type="submit" class="btn btn-primary" value="搜索" />
                            <a class="btn btn-danger" href="{:url('Wallet/index')}">清空</a>
                            <br><br>当前检索结果 总余额: <span style="color:red">{$total_balance}</span>
                        </form>

                        <table class="table table-hover" id="menus-table">
                            <thead>
                                <tr>
                                    <th width="60">ID</th>
                                    <th width="100">用户ID</th>
                                    <th>用户名</th>
                                    <th>币种</th>
                                    <th>类型</th>
                                    <!-- <th>链上正式余额</th> -->
                                    <th>云端余额</th>
                                    <th>地址</th>
                                    <th>Memo/Tag</th>
                                    <th>seed</th>
                                    <!-- <th>钱包更新时间</th> -->
                                    <th>最后添加时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <eq name="datas" value="">
                                    <tr>
                                        <td colspan="5" style="text-align: center">暂无数据</td>
                                    </tr>
                                    <else />
                                    <foreach name="datas" item="vo">
                                        <tr>
                                            <td> {$vo.id} </td>
                                            <td> {$vo.uid} </td>
                                            <td>{$vo.uname} </td>

                                            <td>{$vo.coin_symbol}</td>
                                            <td>{$type[$vo.type]}</td>
                                            <!-- <td>{$vo.chain_balance}</td> -->
                                            <td>{$vo.cloud_balance}</td>

                                            <td>{$vo.address}</td>
                                            <td>{$vo.seed}</td>
                                            <td>{$vo.memo}</td>
                                            <!-- <td>{$vo.chain_update_time|date="Y-m-d H:i",###}</td> -->
                                            <td>{$vo.add_time|date="Y-m-d H:i",###}</td>
                                            <td>
                                                <a href="{:url('wallet/add',array('id'=>$vo['id']))}">操作</a>
                                            </td>

                                        </tr>
                                    </foreach>
                                </eq>
                            </tbody>
                        </table>
                        <div class="pagination">
                            <div>
                                当前共有数据 <span style="color:blue;font-weight:bold">{$num}</span> 条
                            </div>
                            {$page|default=''}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>